import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import path from "path";
// import legacy from "@vitejs/plugin-legacy";

// https://vitejs.dev/config/
export default defineConfig({
  base: './',
  plugins: [
    react(),

    // legacy({
    //   targets: ["defaults", "not IE 11"],
    // }),
  ],
  build: {
    minify: false,
},

  //配置路径别名
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "./src"),
    },
  },
});
